package cn.itcast.search.service;

import cn.itcast.hmall.dto.common.PageDTO;
import cn.itcast.hmall.dto.search.SearchReqDTO;
import cn.itcast.hmall.pojo.item.ItemDoc;

import java.io.IOException;
import java.util.List;
import java.util.Map;

public interface SearchService {
    PageDTO<ItemDoc> search(SearchReqDTO searchReqDTO) throws IOException;

    Map<String, List<String>> filter(SearchReqDTO searchReqDTO);

    List<String> getSuggestions(String prefix);
}
